/* xctstyles.css */
:root {
    --primary: #1976d2;
    --secondary: #03a9f4;
    --accent: #00bcd4;
    --light: #e3f2fd;
    --dark: #0d47a1;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #f5f7fa, #e3f2fd);
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease;
}

.header p {
    font-size: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

/* 导航栏样式 */
.nav {
    background: rgba(25, 118, 210, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(13, 71, 161, 0.95);
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-title {
    font-size: 1.8rem;
    color: var(--white);
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-menu li a {
    color: var(--white);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    font-weight: 500;
}

.nav-menu li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* 主要内容样式 */
.main-content {
    padding: 2rem 0 4rem;
}

.section {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 2.5rem;
    margin-bottom: 3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* 画廊样式 */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    height: 250px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.8rem;
    font-size: 0.95rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* 信息卡片样式 */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: var(--light);
    border-radius: 10px;
    padding: 1.8rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(3, 169, 244, 0.2);
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(3, 169, 244, 0.2);
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.info-card:hover::before {
    transform: scaleX(1);
}

.info-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
}

.price {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary);
    margin: 1.5rem 0;
    position: relative;
    display: inline-block;
}

.price::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.info-card ul {
    list-style: none;
    text-align: left;
    margin-top: 1rem;
}

.info-card ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.info-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* 时间线样式 */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: right;
}

.timeline-content {
    background: var(--light);
    padding: 1.8rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: calc(50% - 40px);
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(3, 169, 244, 0.2);
}

.timeline-content::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 4px solid var(--primary);
    border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: -50px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: -50px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* 按钮样式 */
.btn {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(25, 118, 210, 0.4);
    background: linear-gradient(to right, var(--dark), var(--primary));
}

/* 页脚样式 */
.footer {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* 动画效果 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* 添加浮动动画效果 */
.header h1, .gallery-item, .info-card, .timeline-content {
    animation: float 6s ease-in-out infinite;
}

.header h1 {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.4s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.6s;
}

.info-card:nth-child(2) {
    animation-delay: 0.3s;
}

.timeline-item:nth-child(odd) .timeline-content {
    animation-delay: 0.2s;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
    
    .timeline-content::before {
        left: -50px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.8rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(13, 71, 161, 0.95);
        flex-direction: column;
        padding: 1rem 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .section {
        padding: 1.8rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }
}

@media (max-width: 576px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .header p {
        font-size: 1.2rem;
    }
    
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 1.5rem;
    }
}